package park;

public class J15Ch05Printers {
	
	public static void main(String [] agrs){
		
		J15Printer 그냥프린터 = new J15Printer();
		그냥프린터.print();
		
		J15InkjetPrinter HP잉크젯 = new J15InkjetPrinter();
		HP잉크젯.print();
		
		J15LaserPrinter 조레이저 = new J15LaserPrinter();
		조레이저.print();
		
	}

}

class J15Printer{
	
	private String  maker;
	private String  model;
	private String  interfaces;
	private String  dateCreated;
	private int  counts;
	private int  remains;
	
	public void print(){
		System.out.println("프린트로 출력");
	}
	
}


class J15InkjetPrinter extends J15Printer{
	/*
	private String  maker;
	private String  model;
	private String  interfaces;
	private int  counts;
	private int  remains;
	*/ //상속으로 처리
	
	@Override //@가 붙은거는 컴파일러를 위한 주석
	public void print(){
		System.out.println("잉크젯 프린트로 출력");
	}
	
	
}


class J15LaserPrinter extends J15Printer{
	/*
	private String  maker;
	private String  model;
	private String  interfaces;
	private int  counts;
	private int  remains;
	*/ // 상속으로 처리
	
	@Override //@가 붙은거는 컴파일러를 위한 주석
	public void print(){
		System.out.println("레이저 프린트로 출력");
	}
	
	
}




	
/*
class P{
	
	protected String model;
	protected String maker;
	protected String inter;
	protected String paper;
	protected String paperR;
	
	
	
	
	protected String getModel() {
		return model;
	}
	protected void setModel(String model) {  
		this.model = model;
	}
	protected String getMaker() {
		return maker;
	}
	protected void setMaker(String maker) {
		this.maker = maker;
	}
	protected String getInter() {
		return inter;
	}
	protected void setInter(String inter) {
		this.inter = inter;
	}
	protected String getPaper() {
		return paper;
	}
	protected void setPaper(String paper) {
		this.paper = paper;
	}
	protected String getPaperR() {
		return paperR;
	}
	protected void setPaperR(String paperR) {
		this.paperR = paperR;
	}
	
	

	
	
	
}

class IP extends P{
	
	private String IJ;
	
	
	
	
}

class RP extends P{
	
	private String tonerJ;
	
}*/
